$(".class-department-parent").mouseenter(function () {
    $(".class-department").css("display", "block");
    $("#work_department").css("background", "#ffac00");
    $("#work_department").css("color", "white");
})
$(".class-department-parent").mouseleave(function () {
    $(".class-department").css("display", "none");
    $("#work_department").css("background", "transparent");
    $("#work_department").css("color", "#000");
})

$(".class-other-parent").mouseenter(function () {
    $(".class-other").css("display", "block");
    $("#work_new").css("background", "#ffac00");
    $("#work_new").css("color", "white");
})
$(".class-other-parent").mouseleave(function () {
    $(".class-other").css("display", "none");
    $("#work_new").css("background", "transparent");
    $("#work_new").css("color", "#000");
})

$(".class-year-parent").mouseenter(function () {
    $(".class-year").css("display", "block");
    $("#work_year").css("background", "#ffac00");
    $("#work_year").css("color", "white");
})
$(".class-year-parent").mouseleave(function () {
    $(".class-year").css("display", "none");
    $("#work_year").css("background", "transparent");
    $("#work_year").css("color", "#000");
})